import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import Home from '/src/views/home'
import About from '/src/views/about'

//配置路由
const routes = [
    { path: '/', redirect: '/home' },
    { path: '/home', component: Home },
    {path:'/about',component:About}
]


//实例化路由

const router = new VueRouter({
    routes
})


//抛出路由

export default router